﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace PuzzleCoop
{
    public abstract class Effect
    {
        protected Game game;
        protected Vector2 position;
        public bool alive;

        protected Effect(Game game, Vector2 pos)
        {
            this.game = game;
            position = pos;
            alive = true;
        }

        public abstract void Update(GameTime gameTime);
        public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch);
        public void Die()
        {
            alive = false;
        }
    }
}